//package com.rw.dao.Impl;
//
//import com.rw.dao.UserDao;
//import com.rw.dao.base.BaseDao;
//import com.rw.pojo.User;
//
//import java.sql.ResultSet;
//import java.sql.SQLException;
//
//public class UserDaoImpl extends BaseDao implements UserDao {
////
////    @Override
////    public User login(String uname,String pwd) throws SQLException {
////        //构建sql
////        String sql =  "select uid,uname,pwd from t_user where uname='"+uname+"' and pwd='"+pwd+"'";
////        //进行查询方法
////        ResultSet resultSet = dataSource.selectData(sql);
////        //查询结果解析到pojo
////        User user = null;
////        if (resultSet.next()){
////            user = new User();
////            user.setUid(resultSet.getInt("uid"));
////            user.setUname(resultSet.getString("uname"));
////            user.setPwd(resultSet.getString("pwd"));
////        }
////        //返回结果
////        return user;
////    }
//}
